package manage.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

import java.util.Date;

@TableMeta(name="os_server_request_d",description="服务请求记录明细表")
public class ServerRequestDetail extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@LinkTableMeta(name="server_request_oid",table=ServerRequest.class,notnull=true,description="所属服务请求")
	private ServerRequest serverRequest;
	@FieldMeta(name="log_ip",type=FieldType.STRING,length=20,description="记录ip")
	private String logIp;
	@FieldMeta(name="log_date",type=FieldType.DATE,description="记录时间")
	private Date logDate;
	@FieldMeta(name="access_long",type=FieldType.INT,description="时长|单位毫秒")
	private Integer accessLong;//
	
	@FieldMeta(name="user_agent",type=FieldType.STRING,length=1000,description="User-Agent")
	private String userAgent;

	public ServerRequest getServerRequest() {
		return serverRequest;
	}

	public void setServerRequest(ServerRequest serverRequest) {
		this.serverRequest = serverRequest;
	}

	public String getLogIp() {
		return logIp;
	}

	public void setLogIp(String logIp) {
		this.logIp = logIp;
	}

	public Date getLogDate() {
		return logDate;
	}

	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}

	public Integer getAccessLong() {
		return accessLong;
	}

	public void setAccessLong(Integer accessLong) {
		this.accessLong = accessLong;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

}
